package generics;

public class Teddy extends Dog{
    public Teddy() {
    }

    public Teddy(String name, int age) {
        super(name, age);
    }
    @Override
    public void eat(String name, int age) {
        System.out.println("一只叫做" + name + "的，" + age + "岁的泰迪，正在吃骨头，边吃边蹭");
    }
}
